package com.ocom.common.entity.aiot;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocom.common.entity.base.EntityBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "mj_device_info")
public class EntityMjDeviceInfo extends EntityBase implements Serializable {


  private static final long serialVersionUID = 5581637882727199677L;
  @TableId(value = "device_no", type = IdType.NONE)
  private String deviceNo;
  private Long pAgentId;
  private String pSaasNo;
  private Long pComId;
  private Long agentId;
  private Long comId;

  private String saasNo;
  private Long status;

  private Long commMode;

  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date commTime;
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date endTime;
  private String appVer;
  private String appVerTab;

  private String osVer;

  private String osVerTab;
  private Long deviceType;
  private Long deviceVerType;

  private String appVerLast;
  private Integer appJobId;

//  private Integer ifAlarm;
//  private Integer alarmTimes;
//  private Integer alarmState;

}
